package TreeSet;

import java.util.TreeSet;

public class Test {
    public static void main(String[] args) {
        Student s1 = new Student("111",20,100,100,100);
        Student s2 = new Student("222",21,90,30,120);
        Student s3 = new Student("333",19,70,60,60);
        Student s4 = new Student("444",19,71,60,59);

        TreeSet<Student>  ts= new TreeSet<>();

        ts.add(s1);
        ts.add(s2);
        ts.add(s3);
        ts.add(s4);


        for (Student t : ts) {
            System.out.println(t);
        }
    }
}
